<?php
/**
 * Core_Data_Bademaildata
 * bad email data message
 *
 * @author Adrian Stolarski
 */
class Core_Data_Bademaildata implements Core_Data_Messagable {
    
    /**
     *
     * @var type $redirect_action
     * redirect handler
     */
    public $redirect_action;
    
    public function __construct() {
        $this->redirect_action = new Core_Data_Redirect;
    }
    /**
     * message()
     * user message and redirect
     * @param type $value
     */
    public function message($value) {
        echo '<script>alert('.INVALID_EMAIL_DATA.$value.MAIL_EVENT.')</script>';
        $this->redirect_action->main(null);
    }

}
